﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Collections;
using LibFriesland_Campina_CRM;

namespace WebServiceFriesland_Campina_CRM
{
    /// <summary>
    /// Summary description for FCInvoiceDetailWS
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class FCInvoiceDetailWS : System.Web.Services.WebService
    {

        [WebMethod]
        //Lay thong tin chi tiet ban hang theo ngay cua NA tai Shop
        public List<BizInvoiceDetail> getInvoiceDetailbyDateNAShop(string pDatetime, string pBy_na, string pBy_shop)
        {
            return BizInvoiceDetail.getInvoiceDetailbyDateNAShop(Convert.ToDateTime(Thuvien.myConvertStringToShortDate(pDatetime)), pBy_na, pBy_shop);
        }

        [WebMethod]
        //Thong ke tong so luong ban duoc tung san pham cua NA theo ngay tai Shop
        public List<BizProductSale> getSalebyDateNAShop(string pDatetime, string pBy_na, string pBy_shop)
        {
            return BizInvoiceDetail.getSalebyDateNAShop(Convert.ToDateTime(Thuvien.myConvertStringToShortDate(pDatetime)), pBy_na, pBy_shop);
        }
    }
}
